package main

import (
	"managementsystem/middleWare"
	"managementsystem/servies"

	"github.com/gin-gonic/gin"
	_ "github.com/jinzhu/gorm/dialects/postgres"
)

func main() {
	r := gin.Default()
	r.Use(middleWare.Cors())
	servies.InfoServe(r)
	servies.ScoreServe(r)
	servies.InfoStatistic(r)
	servies.ScoreStatistic(r)
	panic(r.Run(":8081")) // 监听并在 0.0.0.0:8081 上启动服务
}
